<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/DMN/20151101/dmn.xsd"
             id="definitions"
             name="camunda"
             namespace="http://camunda.org/schema/1.0/dmn">

  <decision id="decision" name="decision">
    <decisionTable id="decisionTable" hitPolicy="FIRST">
      <input id="clause1" label="Type">
        <inputExpression id="inputExpression1">
          <text>type</text>
        </inputExpression>
      </input>
      <input id="clause2" label="Integer">
        <inputExpression id="inputExpression2" typeRef="integer">
          <text>integer</text>
        </inputExpression>
      </input>
      <output id="clause3" name="Output" typeRef="boolean" />
      <rule id="rule1">
        <inputEntry>
          <text>"typed"</text>
        </inputEntry>
        <inputEntry expressionLanguage="juel">
          <text><![CDATA[${variableContext.resolve('cellInput').getValue() >= 42}]]></text>
        </inputEntry>
        <outputEntry>
          <text>true</text>
        </outputEntry>
      </rule>
      <rule id="rule2">
        <inputEntry>
          <text>"untyped"</text>
        </inputEntry>
        <inputEntry expressionLanguage="juel">
          <text><![CDATA[${cellInput >= 42}]]></text>
        </inputEntry>
        <outputEntry>
          <text>true</text>
        </outputEntry>
      </rule>
      <rule id="rule3">
        <inputEntry>
          <text>"typed"</text>
        </inputEntry>
        <inputEntry>
          <text/>
        </inputEntry>
        <outputEntry>
          <text>false</text>
        </outputEntry>
      </rule>
      <rule id="rule4">
        <inputEntry>
          <text>"untyped"</text>
        </inputEntry>
        <inputEntry>
          <text/>
        </inputEntry>
        <outputEntry>
          <text>false</text>
        </outputEntry>
      </rule>
    </decisionTable>
  </decision>
</definitions>
